<%@page contentType="text/html" pageEncoding="UTF-8"%>
<html lang="en">
    <!--<![endif]-->
    <!-- BEGIN HEAD -->

    <head>
        <meta charset="utf-8" />
        <title>HappyChat</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta content="width=device-width, initial-scale=1" name="viewport" />
        <meta content="" name="description" />
        <meta content="" name="author" />
        <!-- BEGIN GLOBAL MANDATORY STYLES -->
        <link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&subset=all" rel="stylesheet" type="text/css" />
        <link href="font-awesome.min.css" rel="stylesheet" type="text/css" />
        <link href="../source/simple-line-icons.min.css" rel="stylesheet" type="text/css" />      
        <link href="../source/bootstrap.min.css" rel="stylesheet" type="text/css" />
        <link href="../source/bootstrap-switch.min.css" rel="stylesheet" type="text/css" />
        <!-- END GLOBAL MANDATORY STYLES -->
        <!-- BEGIN PAGE LEVEL PLUGINS -->
        <link href="../source/select2.min.css" rel="stylesheet" type="text/css" />
        <link href="../source/select2-bootstrap.min.css" rel="stylesheet" type="text/css" />
        <!-- END PAGE LEVEL PLUGINS -->
        <!-- BEGIN THEME GLOBAL STYLES -->
         <link href="../source/components-md.min.css" rel="stylesheet" id="style_components" type="text/css" />
        <link href="../source/plugins-md.min.css" rel="stylesheet" type="text/css" />
        <!-- END THEME GLOBAL STYLES -->
        <!-- BEGIN PAGE LEVEL STYLES -->
        <link href="../source/login.min.css" rel="stylesheet" type="text/css" />
        <!-- END PAGE LEVEL STYLES -->
        <!-- BEGIN THEME LAYOUT STYLES -->
        <!-- END THEME LAYOUT STYLES -->
        <link rel="../source/shortcut icon" href="favicon.ico" />
        <script type="text/javascript">
		function check(){
			if(document.getElementById("form1").username.value==""){
				alert("请输入用户名！");
				document.getElementById("form1").username.focus();
				return false;
			}
			if(document.getElementById("form1").password.value==""){
				alert("请输入密码名！");
				document.getElementById("form1").password.focus();
				return false;
			}
		}
		function backLoginPage(){
			window.history.back(-1);
		}
</script>
    </head>
    <!-- END HEAD -->

    <body class=" login">
	<!-- BEGIN LOGO -->
	<div class="logo">
		<a href="index.html"> <img src="../source/logo-big.png" alt="" />
		</a>
	</div>
	<!-- END LOGO -->
	<div class="content">
		<form class="register-form" action="${pageContext.request.contextPath}/user" method="post" style="display: block">
			<input type="hidden" name="method" value="regist">
			<h3 class="font-green">注册</h3>
			<p class="hint">输入您要注册的账号和密码:</p>
			<div class="form-group">
                    <label class="control-label visible-ie8 visible-ie9">用户名</label>
                    <input class="form-control placeholder-no-fix" type="text" autocomplete="off" placeholder="用户名" name="username" /> </div>
                <div class="form-group">
                    <label class="control-label visible-ie8 visible-ie9">密码</label>
                    <input class="form-control placeholder-no-fix" type="password" autocomplete="off" id="register_password" placeholder="密码" name="password" /> </div>
			 <div class="form-actions">
                    <button type="button" id="register-back-btn" class="btn green btn-outline" onclick="backLoginPage()">返回</button>
                    <button type="submit" id="register-submit-btn" class="btn btn-success uppercase pull-right">提交</button>
                </div>
			
		</form>
	</div>
</body>

</html>